home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1992-02-26 | 1.1 KB | 33 lines |
- '===================
- 'EXAMPLE PROGRAM 5_1
- '===================
- 'A program to load an IFF picture using the Amos file selecter and display it.
-
-
- Rem no need for DIR$ here as the user can change drives using the right mouse
- Rem button, the following line brings up the selecter, f$ will hold the name
- Rem of the file the user selects.
- '-----------------------------------------------------------------------------
- F$=Fsel$("*.*","","Load AN IFF PICTURE")
-
-
- Rem If F$ holds nothing ie no filename the user must have clicked on QUIT
- Rem from the selecter so we exit our program back to the editor.
- '--------------------------------------------------------------------------
- If F$="" Then Edit
-
-
- Rem hide the mouse to keep things tidy
- '-------------------------------------
- Hide
-
-
- Rem We tell Amos to LOAD an IFF picture into the default screen which is 0
- Rem this means it will be automatically displayed.
- '---------------------------------------------------------------------------
- Load Iff F$,0
-
-
- Rem wait for a key press, then back to the editor.
- '-------------------------------------------------
- Wait Key : Edit